#include"HttpServer.hpp"
#include<memory>
#include<iostream>
using namespace std;
int main(int argc,char* argv[])
{
    if(argc!=2)
    {
        cout<<"Usage Error"<<endl;
        return 0;
    }
    int port=stoi(argv[1]);
    unique_ptr<HttpServer> httpserver(new HttpServer(port));
    httpserver->Inital();
    httpserver->Loop();
    return 0;
}